#ifndef REGIST_H
#define REGIST_H

#include <QMainWindow>
#include <QTcpSocket>
#include <QMouseEvent>
#include <QPoint>
#include <QFile>
#include <QToolTip>

namespace Ui {
class regist;
}

class regist : public QMainWindow
{
    Q_OBJECT

public:
    explicit regist(QWidget *parent = nullptr);
    ~regist();

public slots:
    void mouseMoveEvent(QMouseEvent *event);
    void mousePressEvent(QMouseEvent *event);
    void clear();
private slots:
    void on_loginButton_clicked();

    void on_closeButton_clicked();

    void on_usernameLineEdit_textChanged(const QString &arg1);

private:
    bool flag;
    QPoint mouseOff;
    Ui::regist *ui;
};

#endif // REGIST_H
